﻿<%@ Page PathInChannel="{ID}{Ext}" Object="Video" %>
<%@ OutputCache Duration="86400" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Video" Object="Video" PageID="Request.QueryString['ID']" ForMeta="true" />
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=Video[Name]%> - <%=Video[CategoryName]%> - 视频 - <%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "video";
var _webPath = "<%=WebPath%>";
var _lang = "<%=PageLang%>";
var _id = "<%=Video[InnerID]%>";
var _guid = "<%=Video[ID]%>";
var _lang_copy = "网址已复制，粘贴给好友请按Crtl+V。";
var _commentPage = "<%=BuildUrl("ajax_video_comment")%>";
var _checkComment = <%=Config[CheckComment]%>;
var _lang_name = "名称不能为空！";
var _lang_password = "密码不能为空！";
var _lang_content = "内容不能为空！";
var _lang_cant_login = "会员名或密码有误！";
var _lang_cant_post_comment = "发表评论失败！";
var _lang_post_comment_success = "发表评论成功！";
</script>
</head>
<body>
<!-- TemplateBeginEditable name="菜单" -->
<div class="Wrap">
	<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
		<div class="Menu">
			<ali:Record>
				<ali:Select>
					<ali:Yes>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><strong><%=Name%></strong></a>
					</ali:Yes>
					<ali:No>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
					</ali:No>
				</ali:Select>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</ali:Menu>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：视频 - Banner" -->
<div class="Wrap">
	<div class="Ad1">
		<ali:Ad Guid="{5113C7B0-C8D2-4d4d-8A95-AAB25C4367D5}">
			<a href="http://www.alibaza.com" target="_blank"><img src="<%=ImagePath%>ad/ad1.jpg" alt="Ad" style="width:980px;height:100px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="视频类别" -->
<ali:List Object="VideoCategory" Condition="IsDisplay=true and ParentID IS NULL">
	<div class="Wrap">
		<div class="SubMenu">
			<ali:Record>
				<a href="<%=BuildUrl()%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="搜索" -->
<div class="Wrap">
	<div class="Search">
		<form id="Search" action="" target="_blank">
			<input type="radio" name="Search" id="VideoSearch" value="<%=BuildUrl("video_search")%>" checked="checked" /><label for="VideoSearch">视频</label>
			<input type="radio" name="Search" id="AlbumSearch" value="<%=BuildUrl("album_search")%>" /><label for="AlbumSearch">专辑</label>
			<input type="radio" name="Search" id="PersonSearch" value="<%=BuildUrl("person_search")%>" /><label for="PersonSearch">人物</label>
			<input type="text" name="q" size="40" class="Text <%=PageLang%>Font" />
			<input type="submit" value="搜 索" class="Submit" />
		</form>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<!-- TemplateBeginEditable name="广告位：视频 - 搜索下方 - 左" -->
	<div class="Ad2">
		<ali:Ad Guid="{3ED9DF19-3C42-451a-BD57-30045A6C3970}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad4.gif" alt="Ad" style="width:250px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="广告位：视频 - 搜索下方 - 中" -->
	<div class="Ad2">
		<ali:Ad Guid="{9017140B-0BCF-45dd-B8ED-65B5369C7F84}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:480px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="广告位：视频 - 搜索下方 - 右" -->
	<div class="Ad2">
		<ali:Ad Guid="{B9E89322-774F-4dc3-909D-938BDA9809FF}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad8.gif" alt="Ad" style="width:250px;height:60px" /></a>
		</ali:Ad>
	</div>
	<!-- TemplateEndEditable -->
</div>

<!-- TemplateBeginEditable name="路径" -->
<div class="Wrap">
	<div class="Path">当前位置：
		<ali:Path IncludeCurrentChannel="True">
			<ali:Record>
				<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt;
			</ali:Record>
		</ali:Path>
		<a href="<%=BuildUrl("video_list")%>" title="视频列表">视频列表</a> &gt; <%=Video[Name]%>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Block4">
		<h1><%=Video[Name]%></h1>
		<div class="Block7">
			<%If !Guid.Equals(Video[PlayerID], Guid.Empty)%>
				<ali:Get Mark="System" Object="Player" Guid="Video[PlayerID]">
					<div id="Player" data-inner-id="<%=InnerID%>" data-code-file="<%=CodeFile%>" data-url="<%=Video[URL]%>"></div>
				</ali:Get>
			<%Else%>
				<ali:Get ID="PlayerJson" Mark="System" Object="Player" Operation="Parse(Convert.ToString(Video[URL]), 'Video', true)" />
				<div id="Player" data-json="<%=HttpUtility.HtmlEncode(PlayerJson)%>"></div>
			<%EndIf%>
			<p>
				<a href="" id="Up">顶 (<span></span>)</a>
				<a href="" id="Down">踩 (<span></span>)</a>
				<a href="" id="Error">报告错误 (<span></span>)</a>
				<%If Convert.ToString(Video[Download]) != ""%>
					<a href="<%=Video[Download]%>" target="_blank">下 载</a>
				<%EndIf%>
                <!--<a href="" id="Full">全屏</a>-->
				<br /><br />
				节目地址：<input type="text" id="Url" />
			</p>
			<!-- TemplateBeginEditable name="广告位：视频 - video - 播放器下方" -->
			<div class="Ad15">
				<ali:Ad Guid="{7AA574CA-B06F-4df1-8B77-A94D05D9A597}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:468px;height:60px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->
		</div>		
		<div class="Bottom3"></div>
		
		<%If Convert.ToBoolean(Config[EnableComment])%>
			<h5>
				<span class="Left">网友评论（<span id="CommentCount">0</span>）</span>
				<span class="Right"><a href="javascript:;" id="WriteComment">我也要写评论</a></span>
			</h5>
			<div class="Block11">
				<!-- TemplateBeginEditable name="评论列表" -->
				<div id="Comment"></div>
				<!-- TemplateEndEditable -->
							
				<!-- TemplateBeginEditable name="广告位：视频 - 评论下方" -->
				<div class="Ad20">
					<ali:Ad Guid="{9AF14818-D52E-4bae-B048-2120370B53AE}">
						<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:468px;height:60px" /></a>
					</ali:Ad>
				</div>
				<!-- TemplateEndEditable -->
				
				<!-- TemplateBeginEditable name="评论表单" -->
				<form id="CommentForm" action="">
					<textarea name="Content" cols="74" rows="7" class="<%=PageLang%>Font"></textarea><br />
					<%If Manager.HasRight("", InstanceID, PageLang, "VideoComment", "Add")%>
						<input type="checkbox" name="Anonymous" id="Anonymous" checked="checked" /><label for="Anonymous">匿名</label>
					<%Else%>
						<input type="checkbox" name="Anonymous" id="Anonymous" style="display:none" />
					<%EndIf%>
					用户名：<input type="text" size="20" name="Name" class="<%=PageLang%>Font" />
					<label id="PasswordLabel">密码：<input type="password" size="20" name="Password" class="CHSFont" /></label>
					<%If UserChannel != null%>
						<a href="<%=BuildUrl(UserChannel, "register", null)%>" target="_blank" title="新用户">新用户?</a>
					<%EndIf%>
					<input type="submit" value="提交评论" />
					<input type="hidden" name="ToID" />
				</form>
				<!-- TemplateEndEditable -->
			</div>
		<%EndIf%>
	</div>
	<div class="Block5 Margin1">
		<!-- TemplateBeginEditable name="广告位：视频 - 侧栏顶部" -->
		<div class="Ad9">
			<ali:Ad Guid="{73583263-DA6C-4c7c-A55A-537B329B10A2}">
				<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad8.gif" alt="Ad" style="width:220px;height:60px" /></a>
			</ali:Ad>
		</div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="视频信息" -->
		<h4>视频信息</h4>
		<div class="Block6">
			<div class="Block13">
				<label>播放：</label> <span id="HitCount"></span>
				<img src="<%=ImagePath%>up_arrow.gif" alt="Up" /> <span id="UpDisplay"></span>
				<img src="<%=ImagePath%>down_arrow.gif" alt="Down" /> <span id="DownDisplay"></span>
				<br />
				<label>类别：</label>
				<%If !Guid.Equals(Video[CategoryID], Guid.Empty)%>
					<a href="<%=BuildUrl("video_category", "PageTemplate=" + Video[CategoryPageTemplate] + "&ID=" + Video[CategoryPageID] + "&Ext=" + Video[CategoryPageExtension])%>" title="<%=Video[CategoryName]%>"><%=Video[CategoryName]%></a>
				<%EndIf%>
				<br />
				<label>地区：</label>
				<%If !Guid.Equals(Video[RegionID], Guid.Empty)%>
					<a href="<%=BuildUrl("video_region", "PageTemplate=" + Video[RegionPageTemplate] + "&ID=" + Video[RegionPageID] + "&Ext=" + Video[RegionPageExtension])%>" title="<%=Video[RegionName]%>"><%=Video[RegionName]%></a>
				<%EndIf%>
				<br />
				<label>语言：</label>
				<%If !Guid.Equals(Video[LanguageID], Guid.Empty)%>
					<a href="<%=BuildUrl("video_language", "PageTemplate=" + Video[LanguagePageTemplate] + "&ID=" + Video[LanguagePageID] + "&Ext=" + Video[LanguagePageExtension])%>" title="<%=Video[LanguageName]%>"><%=Video[LanguageName]%></a>
				<%EndIf%>
				<br />
				<label>标签：</label>
				<ali:List Source="Manager.SplitToTable(Video[TagNames], Video[TagPageTemplates], Video[TagPageIDs], Video[TagPageExtensions])">
					<ali:Record>
						<a href="<%=BuildUrl("video_tag", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
					</ali:Record>
				</ali:List>
				<br />
				<label>人物：</label>
				<ali:List Source="Manager.SplitToTable(Video[PersonNames], Video[PersonPageTemplates], Video[PersonPageIDs], Video[PersonPageExtensions])">
					<ali:Record>
						<a href="<%=BuildUrl("person", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
					</ali:Record>
				</ali:List>
				<br />
				<label>专辑：</label>
				<ali:List Source="Manager.SplitToTable(Video[AlbumNames], Video[AlbumPageTemplates], Video[AlbumPageIDs], Video[AlbumPageExtensions])">
					<ali:Record>
						<a href="<%=BuildUrl("album", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
					</ali:Record>
				</ali:List>
				<br />
				<label>简介：</label>
				<span id="Preview"></span>
				<a href="javascript:;" id="Handle"></a>
				<pre id="All" class="Hide"><%=Video[Description]%></pre>
			</div>
		</div>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->

		<!-- TemplateBeginEditable name="点击排行" -->
		<h4>点击排行</h4>
		<ali:List Object="Video" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
			<ul class="List5">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" title="<%=Name%>" class="No<%=Index + 1%>"><%=Name%></a><span><%=HitCount%></span></li>
				</ali:Record>
			</ul>
		</ali:List>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->
		
		<!-- TemplateBeginEditable name="最新更新" -->
		<h4>最新更新</h4>
		<ali:List Object="Video" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="UpdateTime DESC">
			<ul class="List2">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" title="<%=Name%>"><%=Name%></a><span><%=Convert.ToDateTime(UpdateTime).ToString("yyyy-MM-dd")%></span></li>
				</ali:Record>
			</ul>
		</ali:List>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->

		<!-- TemplateBeginEditable name="广告位：视频 - 侧栏底部" -->
		<h4></h4>
		<div class="Block6">
			<div class="Ad9">
				<ali:Ad Guid="{0F31FF5A-BB9C-4e4c-8A6B-5A0C8F4AE8A9}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad14.gif" alt="Ad" style="width:200px;height:200px" /></a>
				</ali:Ad>
			</div>
		</div>
		<div class="Bottom2"></div>
		<!-- TemplateEndEditable -->
	</div>
</div>

<!-- TemplateBeginEditable name="广告位：视频 - 网页底部" -->
<div class="Wrap">
	<div class="Ad10">
		<ali:Ad Guid="{AA4A132F-2575-4492-8442-B6153348F605}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad10.jpg" alt="Ad" style="width:980px;height:70px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="友情连接" -->
<ali:List Mark="System" Object="Link" Condition="IsChecked=true">
	<div class="Wrap">
		<div class="Link">
			<h1>友情链接</h1>
			<ul>
				<ali:Record>
					<li>
						<%If Convert.IsDBNull(Logo)%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						<%Else%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><img src="<%=Logo%>" alt="<%=Name%>" /></a>
						<%EndIf%>
					</li>
				</ali:Record>
			</ul>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Footer">
		<!-- TemplateBeginEditable name="脚注菜单" -->
		<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
			<ali:Record>
				<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
			<hr size="1" />
		</ali:Menu>
		<!-- TemplateEndEditable -->
	
		<%=Footer%>
	</div>
</div>

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>swfobject.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
